%option noyywrap
%{
	#include <iostream>
	#include <set>

	using namespace std;
	
	const char* id="201492035";
	set<int> intSet;
	int counter = 0;
%}

%%

^([0-9]{9})	{printf("%s", id);}

NAME$	{printf("%s", "YLT");}

([1-9][0-9]*|0)	{printf("%ld",(long int)atoi(yytext) * 2 + atoi(id));intSet.insert(atoi(yytext) * 2 +atoi(id));counter++;}

([0-9]+\.[0-9]+)	{printf("%ld", ((long int)(atof(yytext) * 2 + atoi(id) + 0.5)));intSet.insert((int) (atof(yytext) * 2 +atoi(id) + 0.5));counter++;}

.	ECHO;

%%

int main() 
{
	yylex();
	printf("出现次数%d\t去重次数%ld\n", counter, intSet.size());
	return 0;
}

